close method documented