added system.exit to errors....