Improved module error handling/reporting