implemented keep alive to avoid Host Timeout on client.
cleanup