deregistering instance along with termination