Open a text file in n++, make some modification, press ALT-F4 or Close program.
The N++ won\'t ask \"Do you want to save your changes\". Instead it quits
As an answer to your question, in the afore mentioned Settings => Preferences => Backup window, uncheck the "Remember current session for next launch" setting. Now you will be prompted to save any modified files when exiting.