Handle kill signals gracefully
Merge pull request #7 from throughnothing/sighandler

Handle kill signals gracefully