Fixed an error in the export example.

Eddie Satterly found that when you run it twice without telling it to recover, it doesn't die when it should
throw an error about not recovering and not overwriting, but that gets clobbered by a later error where
open mode didn't get set properly.