Reset flags when mirror closes