Modify quitting behavior