fix process terminating for zmq server