undoing flush&close, not needed