Catch and print exceptions while writing relengapi_metadata