Handle keep-alive messages at the end of the transfer when