add close channels on unsubscribe flag to prevent channel leaks