Do not SendTransaction() before determining the protocol being used.

This fixes part of redmine #4736.

Also changed the apoptosis message to LOG_LEVEL_CRIT from
LOG_LEVEL_ERR. Makes sense since the server is dying anyway...