[11] Don't catch SIGTERM if not in daemon mode

This doens't make sense if not in daemon mode.
Merge pull request #1315 from jaymzh/fixsignals-11

[11] Don't catch SIGTERM if not in daemon mode