Remove stragling unnessisary Thread.sleep()s and System.exit()s