check for exceptions in the module loop