Return exit code instead of exit test