on stream completion, destruct network object first so that the delay wrapper class can shut down properly, the file stream object can take too long to destruct and can cause a disconnect