I don't think you want to use RealSystem() here; doesn't that really call `System.exit()`?