catch exception if repeatedly running the formatting.