Catch all errors in json plugin and log important ones