expose the close method