Prevent directly-called modules from crashing the core.