Defer captures the named return value err. Check out http://play.golang.org/p/tJ78i7ep4n for an example.