Better logging, better disconnect handling.