refactor(network): call app.Close()
on network cleanup
#18249
Merged
app.Close()
on network cleanup
#18249