title: How to close sockets left open by a killed program?
body: <p>I have a program (Python) that in some point uses</p>
  
  <pre><code>    zmq.Context.socket(zmq.REP)
  </code></pre>
  
  <p>and</p>
  
  <pre><code>    zmq.Context.socket(zmq.PAIR) 
  </code></pre>
  
  <p>sockets but the problem is that when program is killed the sockets still can be found using: </p>
  
  <pre><code>    'ps aux | grep zmq'
  </code></pre>
  
  <p>command. So what can I do to make them disappear after program is killed?</p>