Partially implemented close method