Fixed error detection in GUI and Network.

Network now log an error if have zero streams from file or network.
GUI now log an error if the program fails to initialize, dump the log
and then terminate the program with an error code.