The event fires before command will be closed.
published
The BeforeClose event fires, before command will be closed by calling Close or setting Active = False.
property BeforeClose: TNotifyEvent;
AfterClose, Close, Active