Patch for issue with connections hanging with servers that don't close connections