adding finishOnSignal
Merge pull request #9 from ifit/finish-on-signal

adding finishOnSignal