Make frame, protocol, socket errors halt the connection

.. and reply with an error when possible.