fixed exception reporting when loading modules
Merge branch 'refs/heads/issue140'