Handle all types of exception when validating database access during import