Make constructor explicit and set m_selfClosing directly.