Add better exception handling around badly formed ws data

Go JSON parser is a fickle beast