Protect drex from loading bad modules by providing error callback