Script is now writing results while running.
Upon failure, the reuslts collected so far will be saved.