Moving screenshot dir. creation to recordFailure method,cleanup