Improve retrying log messages in safeConnect