Fixes/Implements #204: Return non-zero error code on error

Other than `exit()`, I also added `exitErr()`. The former exits with an exit code of `0`, the later with a code of `1`.