Fixing a bug in setQuitStrategy