Move deferred close to before error exit.
Move deferred close to before error exit.

warmchang/minikube,warmchang/minikube,warmchang/minikube,kubernetes/minikube,warmchang/minikube,warmchang/minikube,kubernetes/minikube,kubernetes/minikube,kubernetes/minikube,warmchang/minikube,kubernetes/minikube,kubernetes/minikube,warmchang/minikube,kubernetes/minikube