Add smart_quit function, to avoid quitting from preview, qf windows.