code: public void pleaseStop()
      {
      	if (stopRequired)
      		return;
      	
          stopRequired = true;
          try
          {
              if (receiver != null)
                  receiver.close();
          }
          catch (JMSException e)
          {
          	ErrorTools.log(e, log);
          }
      }
docs: Ask the thread to stop