Stop the random map generation upon quit request (Alt+F4), refs #4822.