#66 fixed connection lost on syntax error