Fix segmentation fault for screenshots; Enable crash protection for plugins