catch exceptions for file load errors