I don't have enough reputation score to add a comment, so I'll add my notes to the answer.
It could that the System.exit() is called when your main frame gets closed, for example, if it's been created with JFrame.EXIT_ON_CLOSE option. If this is the case, then check how to handle System.exit() with FEST.