added error handling on instance detaching, and detaching from sdc instead of sdb