implemented method to dispose all packets