For that type of problem you can read the "Cannot Leave Homegroup" thread below which talks about fixing the same problem.
I will show you the more direct approach to fixing the problem here. This is another Windows 7 bug apparently so you need to delate a file to fix it.
The fix for this problem seems to be Deleting the file
idstore.sst under
C:\windows\serviceProfiles\LocalService\AppData\Roaming\PeerNetworking
Once everything at peer Networking Grouping is running you may also need to do this...
Start the Task Manager Click on the service Tab Find the "HomeGroupProvider" and then stop the service. You may need to go back into services and enable Peernetworking again after the fix. Don't forget to restart all machines making the adjustments. Cannot leave Homegroup
For more help try my Homegroup trouble shooter list.
Homegroup issues