ENYO-3082: restored onFileChanged action, i.e. closeDocument