bugfix: socket.block will block socket.close