Better debug output when errors occur in extension manager