Fixed issue #9983: After "Exit and Clear survey", "Close this window" button does not consistently work