log the reason for a tail close and number of bytes sent

Starter for what I think could be useful in debugging tail behavior.