Fix exit with the proper exit code

If no logging was requested, the script exited with no error code, even
if exercise.sh failed.