Fixes issue 5
Merge pull request #6 from lukecampbell/process-termination

Fixes issue 5