maintain `connection.state` instead

@mickhansen I believe that problem was occurring because
“protocol_error” is a faulty state, not a valid one.