#49 fixed connection lost on syntax error