* Fix config not saved when the window is
  closed through the window manager