Updated example with rescue block, and more helpful output.