Please note that the CloseAllPopups function is specifically designed to close popups that have been programmatically created using the ShowPopup call.
Popups triggered by clicking a marker—such as those in TTMSFNCOpenLayers—serve as hints associated with the marker itself. Currently, there is no built-in functionality available to programmatically close these marker-related popups.