code: def sign_off(self):
          
          try:
              logger.info("Bot player signing off.")
              feedback = WebDriverWait(self.driver, 20).until(
                  EC.presence_of_element_located((By.ID, "submit-questionnaire"))
              )
              self.complete_questionnaire()
              feedback.click()
              logger.info("Clicked submit questionnaire button.")
              self.driver.switch_to_window(self.driver.window_handles[0])
              self.driver.set_window_size(1024, 768)
              logger.info("Switched back to initial window.")
              return True
          except TimeoutException:
              logger.error("Error during experiment sign off.")
              return False
docs: Submit questionnaire and finish.
  
          This uses Selenium to click the submit button on the questionnaire
          and return to the original window.