Closes the document. You are prompted if you would like to save the document if it contains unsaved changes.