add close method to store