Return exit code 1 in case of error