[FIX] raise exception instead of ungraceful exit
Merge pull request #26 from hroest/fix/fix_exit

[FIX] raise exception instead of ungraceful exit