Add signal handler for SIGTERM.

Correct clearing of the continue prompt upon key input.