Save exception before sending to prevent data loss