save a screenshot.png when stopping