Patched close process for network stack.