Run configure_system() when window is closed.  This should also
work if process just dies (killed by signal or some such).