fix bug where faild bind SIGABRT the deferred close.  Fix formatting with go fmt.