Client cancel tasks after send the session to the buffer.