Fix possible crash when a connection goes down while broadcasting data