Trap term
Merge pull request #2 from ScotterC/signal-handlers

Trap term