Fixes issue when disconnecting while still mounted