添加eventThread close方法，添加SelectionKey.OP_WRITE