examples/simple: Handle possible errors of Draw and DrawRect.