Don't reconnect on protocol errors
Merge pull request #1043 from hurtonm/dont_reconnect_on_protocol_errors

Don't reconnect on protocol errors