Window close Fix.