Add close method