added System.exit for do quit