Fix main.js error handling - nodeConnection errors are now marked as expected as they're not caused by extensions code.