When I create an animation, these happen

Ok, can we just talk about this. Accidently pressing on the Close button while making an animation The tab closes. This actually happened to me, why not add cormfirmation when pressing the X button… like (Closing tab will leave unsaved changes, Sure to close tab?), that would be so useful.