Clear buffer on disconnect