remove context on close for zmq_connection(), code cleanup