Improve logging when module parsing and execution fails.