Remove the double-close() warning