Adding handle to set exit code
Merge pull request #112 from piotrooo/master

Exception handlers set no exit code