Clear futures when disabling the keepalive, and do it on every disconnect instead of only at session end.