Problem quitting game in Rider without getting errors

Godot Version

Godot 4.2.2

Question

I have a simple game with two scenes, a start sceen and a game screen. Everthing is fine running in the Godot editor but when I run the game in Rider and press the quit button in the game I get ‘ERROR: FATAL: Condition “!rc_owner” is true.’ If I press the window close button I get 'ERROR: Resources still in use at exit.". Could anyone suggest how I should approach this problem? Thank you.