Fix leaky file descriptor bug on http_output.go

This is a PR for versions/0.8 branch to fix leaky file descriptor bug, replacing this PR: https://github.com/mozilla-services/heka/pull/1159