return RESULT as exit code