Retry logic if server down.  Additional debug/logging methods.