let the cm handle catching errors
logging adjustment, and error handling of client.end() calls
logging adjustments