Try and catch screenshot.