#8, add close method on client