Implemented system to handle client disconnects