Catch SIGTERM for interruption.

Default signal sent by other program to gently stop ninja is SIGTERM.