Fixed a problem introduced by the previous commit. Apparently deleting System.exit(0) in an obviously redundant place leads to execution hanging. Some other thread was left running?