improved error handling for loading jacob lib