Fix stack trace not captured when throwing error
Merge pull request #189 from seegno/bugfix/net-connect-not-allowed-error-stacktrace

Fix stack trace not captured when throwing error