The OnClientCommand for a Restore command should not be raised for a closed RadWindow
Currently, when a maximized RadWindow is closed the OnClientCommand event handler is called with a command "Restore" because when a maximized RadWindow is being closed it is first restored.
A flag can be used to avoid it, see the attachment.