Added keepalive to connections to protect against quietly dying TCP connections piling up.