Streamsql disconnect workaround

Adding streamsql disconnect workaround for heroku.