Remove dead code/extra logging.
Handle exceptions when formatting with phony.