title: Blackberry closing UiApplication Alternative Entry Point
body: <p>I have a requirement to have a background process using Application, while also having a UiApplication through an alternative entry point.</p>
  
  <p>Now, everything works great and I'm able to communicate between them fine, apart from when it comes to telling the UiApplication to close from the background process.</p>
  
  <p>I've tried a number of methods:</p>
  
  <p><code>UiApplication.getUiApplication().requestClose()</code> doesn't work.</p>
  
  <p>I've tried setting a boolean value to true, which the UiApplication checks every second to see if it's true or not, if so, it closes itself. Doesn't work...</p>
  
  <pre><code>UiApplication.getUiApplication().invokeLater(new Runnable(){
       public void run(){
            System.exit(0);
       }
  });
  </code></pre>
  
  <p>Anyone have experience in this who can point me in the right direction?</p>