Use NSInvocation to quit with status code