better error reporting on websockets errors