return the exit code