def close
      @consumers.each { |consumer| consumer.close } if @consumers
      @consumers = []

      @sessions.each { |session| session.close } if @sessions
      @session=[]

      @jms_connection.close if @jms_connection
    end
def close
      @consumers.each { |consumer| consumer.close } if @consumers
      @consumers = []

      @sessions.each { |session| session.close } if @sessions
      @session=[]

      @jms_connection.close if @jms_connection
    end
Close connection with the JMS Provider
 First close any consumers or sessions that are active as a result of JMS::Connection::on_message