Handle more json serialization exceptions in a more user friendly way

Don't display the stack trace to consumers.