Fixing auto shutdown after startup on heroku