This has been a PITA with v8.0 You are not the first with this complaint.
This appears to happen without any “opt-out” screen at all.
This has been a known bug which for some reason avast is “still” dealing with.
Sorry it happened to you. If it had happened to me I’d be upset also.
The good news it hasn’t happened with v2014. 8)