Catch Exceptions and change formatting