close connection when response has no body after writing headers

Fixes https://github.com/Objective-Cloud/OCFWebServer/issues/6