Thread/Task/Resource cleanup in Disconnect