 
     if herokuUrl
       herokuUrl += '/' unless /\/$/.test herokuUrl
-      setInterval =>
+      @pingIntervalId = setInterval =>
         HttpClient.create("#{herokuUrl}hubot/ping").post() (err, res, body) =>
           @logger.info 'keep alive ping!'
       , 1200000

  #
  # Returns nothing.
  shutdown: ->
    @adapter.close()
    @brain.close()



    @parseVersion()
    @setupExpress() if httpd
    @pingIntervalId = null
    @loadAdapter adapterPath, adapter

  # Public: Adds a Listener that attempts to match incoming messages based on
