improved dispose() and stop() by making PacketCacheThread stop more
gracefully (i.e. without thread death)