Fixed exception class in ErrorGuard