Small fix on network closing step