Improved exception handling. Only known errors are wrapped in custom messages. File loading errors and class loading issues are handled separately.