Closes windows on lock/unlock