Explict quit from console (for the GUI case)

Change the quit route for the console code too.