better error handling for ReflectionTypeLoadException