code: public static void closeQuietly(final MessageConsumer consumer)
      {
          if (consumer != null) {
              try {
                  consumer.close();
              }
              catch (JMSException je) {
                  if (je.getCause() instanceof InterruptedException) {
                      LOG.trace("ActiveMQ caught and wrapped InterruptedException");
                  }
                  if (je.getCause() instanceof InterruptedIOException) {
                      LOG.trace("ActiveMQ caught and wrapped InterruptedIOException");
                  }
                  else {
                      LOG.warnDebug(je, "While closing consumer");
                  }
              }
          }
      }
docs: Close a message consumer.
  
  @param consumer