Added trace and debug logging of errors when sending