Let the module system handle the error. Once we shift to deferred modules, things get more complicated and we cannot check the module class eagerly