Fixed bugs in flow tracking logic, reporting bandwidth should be mostly accurate now.

Note that the flow tracker uses a heuristic approach to deal with flows
being removed.
Added handling for exceptions that may occur during network initialization or termination.