added the implementation of new interface method closeWindowsForRecovery