Actually look at the term signal

but treat SIGPIPE as normal termination.

Closes #1469