As pointed out in a comment on bug #4174 System.exit() should not be used to bail out in bad situations because it doesn't give the gui or the fhpd (or anything else using frysk as library) a chance to properly notify the user what happened (and clean things up). The following classes use System.exit() at this time: - frysk.rt.RunState - frysk.util.FCatch - frysk.util.StacktraceAction - frysk.util.CoredumpAction - frysk.gui.srcwin.SourceWindowFactory - frysk.gui.common.Messages - frysk.gui.Gui (this is probably the only class that should use it)
The frysk.util.CoredumpAction one was fixed by: 2007-06-19 Phil Muldoon <pmuldoon@redhat.com> * CoredumpAction (AbandonCoreDump): Do not use system.exit, instead throw an exception.