Fix Issue #300: closeDialog convenience API