add close() to bundle