added some logging before clearing screenshots