Revert "Adding res.end() to see if it alleviates the socket timeout errors."

This reverts commit b5b09a9a9eee1560e876bd41f884bdf4eb2b0ca1.