possible fix for submission handler getting stuck after loss of db connection