Resolved a small bug in disconnection.