Replaced System.exit(0); with a self-eaten poisonPill.