Thank you Victor C for your suggestions, but all you said we already know.
My point was that lot of players way too often face with this problem (some get damaged for weeks - even months of gameplay) that can easily be fully avoided by only few lines of code (simple Yes/No popup to confirm execution of actions).