Add documentation to "doClose"