You can change this behavior through the preferences.
Edit -> Preferences -> Advanced -> gui.ask_unsaved -> FALSE