Use ensure to make sure we restore stdout.

Restore stdout in an ensure block so that if an exception is raised in
lamescan we don't continue to redirect stdout to dev null.