How to handle closing console with "X" button. I tried this thing:
def on_exit(signal_type): options = webdriver.ChromeOptions() # off devto