fix not recovering after uncaught termination