Updated Collector.py for fault tolerance