Using defer, panic and recover in Go.