catch screenshot excpetion