fix network on close