Don't return false when getting "close window" command from native shell. ...

...Otherwise, users will lose changes in the unsaved documents. This fixes issue #3152.