Better client disconnection detection