Catch decode errors

When decode errors happen (JSON,UTF,etc ) a new connection is established. Causing excessive connections on the server.