log error for reconnect