Add unsubscribe hook