(PDB-126) Command retries should log the exception's stacktrace

Current code was only logging the exception message to the log
(not the stacktrace).