allow IO in nw event handlers
Use entered context only for static call

Fix a1d382dd4ae50db69c0430b90f7e81faa75edd63