Close the file without saving

Change the "close file" workflow, to fit most softwares':

-> close
-> if file has changes
    -> ask if the user is sure to close without saving
        -> Cancel: stay on the document
        -> Ok: close without saving