Fix exit with the proper exit code

If no logging was requested, the script exited with no error code, even
if exercise.sh failed.
Merge pull request #45 from matelakat/fix-error-code

Fix exit with the proper exit code