If it just quits, then it isn't an exception causing the problem. Try catching Error and printing the trace. Yeah, I know this isn't normally done because there is normally nothing the program can do to recover from the problem, however just to figure out what is causing the problem might be worthwhile.
"JavaRanch, where the deer and the Certified play" - David O'Meara
Or catch Throwable, which includes both Error and Exception. When you say it "just quits", do you get any error message? If not, you may find it useful to add a bunch of print statements which tell you what part of the program is executing, so the printout actual as a log of the program's activities. This often offers invaluable clues.
"I'm not back." - Bill Harding, Twister
subject: Print table code.... shuts down application