Added some more error catching to figure out what can cause the comment flags at times to not complete.