Massive Traffic Spike when Connection Lost

When a connection is lost to a device we get these massive traffic spikes in any links from that device, that go ridiculously high.It makes the graphs all distorted. Is there a way to avoid this.
Inkedchart.png

What kind of connection is that, and how are you retrieving this traffic info?
When it is something like PPPoE or another interface that gets deleted and created when the link is down/up, remember the traffic stats start at 0 again after it comes up.
When your traffic analyzer just does (counter_now - counter_5_minutes ago)/5_minutes to calculate the traffic, this traffic spike is the result.
In a good traffic monitoring package you can apply extra filters or checks to avoid this.

This is on a mikrotik router that is using the routerOS to graph an interface. It is an actual physical interface.