Autoclose mod window if new one is opened