jps -l
jstack {pid}
The next time KoLmafia gets stuck on exit:
Use that to figure out what the process id is for KoLmafia.Code:jps -l
Use that to get a stack trace dumped to the console. I get the feeling there's some kind of weird locking going on still in the event dispatch thread, but it only occurs if certain conditions are met, and they don't get met by me logging on to do a bounty. =\Code:jstack {pid}