Better logging on disconnect