better error handling when sending reports