added client disconnection handler