added support for restartOnCrash option
Merge pull request #14 from fchopard/master

added support for restartOnCrash option