removing spurious system.exit