title: NSRunningApplication terminate() returning false
body: <p>Building a macOS app that gets the currently active <code>NSRunningApplication</code>.</p>
  
  <pre><code>public func findActiveApp() -&gt; NSRunningApplication? {
      for app in NSWorkspace.shared.runningApplications {
          if app.isActive {
              return app
          }
      }
      return nil
  }
  </code></pre>
  
  <p>After that, I'm just trying to terminate the application using</p>
  
  <pre><code>let app = findActiveApp()
  app.terminate()
  </code></pre>
  
  <p>It's not terminating the application and returning false (this is for any app not just a specific one).</p>
  
  <p>I have also tried <code>app.forceTerminate()</code>.</p>
  
  <p>Please note that I have already added my application to the Accessibility list in System Preferences.</p>
  
  <p>Do you have any clue to what might be the cause of this?</p>
  
  <p>Thanks!</p>