add close() call