fixed exception reporting when loading modules