After an error, the connection state is now set to CLOSED.