Added some logging to help pin down incorrect connection state messages.