Main method won't return
<p>What can be a cause of a java application not exiting ?
The last line of code prints a message and then it does not exit until you press the Stop button.</p>

<p>The code itself does not join any other thread; and the last line of code before the closing curly brace is </p>

<pre>System.out.println("ok");</pre>

<p>and it prints "ok", then just halts.</p>
