chore: Enable golangci-lint and fix errors (#554) Enable golangci-lint checking in travis and fix errors identified by it. This mainly involves removing dead code and improving error checking such as: * activeConn.Close now returns any error from operations it performs instead of always returning nil.