Add a timeout on sockets. This should reduce half open sockets.