[18.09 backport] Remove a network during task SHUTDOWN instead of REMOVE Upstream-commit: 605119d7b0c3b3dff7ff41b2da8e50fcaff8bae5 Component: engine