title: MQ right way to close connection
body: <p>I saw lots of examples like
  <a href="http://hursleyonwmq.wordpress.com/2007/05/29/simplest-sample-applications-using-websphere-mq-jms/" rel="nofollow">http://hursleyonwmq.wordpress.com/2007/05/29/simplest-sample-applications-using-websphere-mq-jms/</a>, even on IBM publib. As I guess this code had a flaw: Queue connection closed in main block, and not in <strong>finally</strong> as I expected. </p>
  
  <p>What is the right way to close MQ connection without leaks?</p>