Fix #102 : Some file streams were left open by krun, causing temp directory move to produce errors. Closed all faulty streams and added some problem diagnosis code.
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?