Created events to handle client disconnects