Implemented terminate.guard and renamed exec-on-exit

The 'exec-on-exit' feature is now 'terminate.exec_args'.

The 'failsafe' feature is now 'terminate.guard'.

Implemented the terminate.guard command and --terminate-guard
option, and new terminate logic.

fixes #27