Consume exceptions on terminate
Merge branch 'feature-make-terminate-robust-to-exceptions'