private void exit(){
  try {
    connect.close();
  }
 catch (  javax.jms.JMSException jmse) {
    jmse.printStackTrace();
  }
  System.exit(0);
}

private void exit ( ) { try { connect . close ( ) ; } catch ( javax . jms . JMSException jmse ) { jmse . printStackTrace ( ) ; } System . exit ( 0 ) ; }
cleanup resources and then exit .
