Added handlig Quit command as an exception, so we can assure proper cleanup - exit() function just terminates, no destructors were called