net: fix crash on deleted server socket

Once a connection is bad, stop sending messages.

Seems to be a regression from 03803ee