finding out when a client disconnects