Move uncaught exception to handle sigterm option
0.5.7