Catch exceptions within staticimg task and reraise only after webdriver
is quit cleanly. Fixes #272
Merge branch 'beta' into homepage_refresh_2.0