Added SIGTERM handling (same behavior as SIGINT), as per http://en.wikipedia.org/wiki/Unix_signal