You can read about defer here: http://golang.org/doc/effective_go.html#defer