Move event loop and (almost) DNS to mowgli
Prevent sync recursion