Actually `open` (without underscore) seems like a better place to register the close handlers ...