Add a workaround for Heroku so that exited processes are properly detected as such.