Capture error screenshot. Fixed #10.