Unsubscribing closes the channel after dropping it from the map. The fan-out copied the channel and sent after releasing the lock, so the close could land first and panic the process. The send now happens while the lock is still held.