This seems to help with the sticky windows menu items issue where windows that are supposed to be closed sometimes stick around.