handle errors unloading from a window at shutdown