* UI2: extracted redundant cmds to onWindowClosed {}