Fixed an issue where DialogClosed() is NOT invoked for an OpenDialog or SaveDialog on MAC