Fixed failures.txt being empty all the time