(cherry picked from commit f7ec0a43)
Siehe auch: https://stackoverflow.com/questions/16756330/closing-the-channel-right-after-writing-the-response/45792038#45792038