The even fires before the component will be closed.
published property BeforeClose: TNotifyEvent read FBeforeClose write FBeforeClose;