Clean up subscription and unsubscription iteration.