[minor] Kill the connection when we receive an error.