Return  error message in socket server when parseSentence throws an error

Currently, the socketserver simply does not respond if parseSentence throws an error, causing netcat / the client to hang. 

Proposed change returns a simple {"error": <message>} json to signal that there is a problem.