Exit with the result exit code.