Minor cleanups
Fixed bug #1 Added ability to log when program is terminated by user on keyboard