Closing upstream keepalive connections in an invalid state