some keepalive logic to keep Heroku from dropping client