Modified to not print stack traces on class errors