Handle terminating signals.  Better, anyway.