Improved tcp stream handling
Renamed response.end to finish