Don't try release network in non-private modes

Fixes #9594