Fix bug where survey prompt causes subsequent quit