Traceback (most recent call last):
  File "/home/sander/projects/electrum/electrum/electrum/gui/qt/main_window.py", line 2539, in closeEvent
    self.clean_up()
  File "/home/sander/projects/electrum/electrum/electrum/gui/qt/main_window.py", line 2570, in clean_up
    self.gui_object.close_window(self)
  File "/home/sander/projects/electrum/electrum/electrum/gui/qt/__init__.py", line 428, in close_window
    self.daemon.stop_wallet(window.wallet.storage.path)
  File "/home/sander/projects/electrum/electrum/electrum/daemon.py", line 533, in stop_wallet
    return fut.result()
           ^^^^^^^^^^^^
  File "/usr/lib/python3.11/concurrent/futures/_base.py", line 456, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/home/sander/projects/electrum/electrum/electrum/daemon.py", line 542, in _stop_wallet
    await wallet.stop()
  File "/home/sander/projects/electrum/electrum/electrum/wallet.py", line 461, in stop
    self.save_db()
  File "/home/sander/projects/electrum/electrum/electrum/wallet.py", line 395, in save_db
    self.db.write(self.storage)
  File "/home/sander/projects/electrum/electrum/electrum/wallet_db.py", line 1567, in write
    self._write(storage)
  File "/home/sander/projects/electrum/electrum/electrum/util.py", line 470, in <lambda>
    return lambda *args, **kw_args: do_profile(args, kw_args)
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sander/projects/electrum/electrum/electrum/util.py", line 465, in do_profile
    o = func(*args, **kw_args)
        ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sander/projects/electrum/electrum/electrum/wallet_db.py", line 1576, in _write
    json_str = self.dump(human_readable=not storage.is_encrypted())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sander/projects/electrum/electrum/electrum/json_db.py", line 44, in wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sander/projects/electrum/electrum/electrum/json_db.py", line 189, in dump
    return json.dumps(
           ^^^^^^^^^^^
  File "/usr/lib/python3.11/json/__init__.py", line 238, in dumps
    **kw).encode(obj)
          ^^^^^^^^^^^
  File "/usr/lib/python3.11/json/encoder.py", line 202, in encode
    chunks = list(chunks)
             ^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/encoder.py", line 432, in _iterencode
    yield from _iterencode_dict(o, _current_indent_level)
  File "/usr/lib/python3.11/json/encoder.py", line 406, in _iterencode_dict
    yield from chunks
  File "/usr/lib/python3.11/json/encoder.py", line 406, in _iterencode_dict
    yield from chunks
  File "/usr/lib/python3.11/json/encoder.py", line 406, in _iterencode_dict
    yield from chunks
  File "/usr/lib/python3.11/json/encoder.py", line 354, in _iterencode_dict
    items = sorted(dct.items())
            ^^^^^^^^^^^^^^^^^^^
TypeError: '<' not supported between instances of 'int' and 'str'