Only close once, if needed