Removed unnecessary handleDisconnect.