fixed exception reporting when loading modules (#140)