Using Desktop.browse doesn't allow program to exit automatically
<p>If I make a simple program that browses to <code>google.com</code>, the program doesn't exit automatically when reaching the end of the <code>main</code> method. I would rather not call <code>System.exit(0)</code>, so I was wondering if there was a way to "close" the desktop thread so it can exit automagically.</p>

<pre><code>public static void main(String[] args) {
    try {
        Desktop.getDesktop().browse(new URI("http://google.com"));
    } catch (IOException e) {
        e.printStackTrace();
    } catch (URISyntaxException e) {
        e.printStackTrace();
    }
}
</code></pre>