keepalive functioning correctly with disconnect. Created keepalive timeout callback.