reconnect on protocol errors instead of crashing -- see #1863