Add some sample code for recovering from a panic.