Don't leak instance of NSInvocation when Cancel is pressed

Release the NSInvocation instance when the user closes the sheet with Cancel.