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