[ModuleHandler] Fix Exception handling.