add some try-catch logic to see if we fail when trying to write the html log