change order of statements to fix s3 exercise save

A fix on the fall2012 codebase.

We had a use-after-close bug which didn't show up before (probably because we changed boto versions).  

This is now fixed.  I tested this on an EC2 app machine and it works.