Close base form which contains an embedded chart

I am using the method in ChartInBase.odb from Apache OpenOffice Community Forum - Charts in Base Forms - (View topic) to embed a Chart in a Base form. It works fine except my usual methods of closing the form do not work. I have tried

  1. Click x button in top right corner of form
  2. DeleteChart() from ChartInBase.odb with ThisDatabaseDocument.FormDocuments.getbyname(“frmPWGraph”).close
  3. Button running Action “Open document/web page” with URN “.uno:CloseDoc”
    These work if I have not yet inserted the chart into the form but not after that.
    There must be something else I need to do before the form will close.
    The only way I have to close this form at the moment is to close the .odb database.
    LibreOffice 7.6.4.1 Windows 11

Tested the database. Closing form works well in LO 24.2.5.2, also LO 24.8.3.1 on OpenSUSE 15.6 64bit rpm Linux. Closing fails on the same system with LO 7.6.4.1.

Update the LO-version to a current supported version and it will work well.

Hi RobertG,
I upgraded to 24.8.2.1 (64bit) as that seems to be the latest stable version and indeed,
forms with an embedded chart now close with the usual methods. Thanks very much!