Added format_as_xfs method
Added Exception catch all error, and print error after critical message.