log last packet when connection fails