It's quite a common problem, usually caused by Windows pushing bad Graphic card drivers.
First thing to try is to download the most recent driver for your graphic card from the card manufacturer. Do not trust windows to tell you it is up to date.
(on a PC/Windows 10) You could try a search from the Taskbar or go to the File explorer in the Start menu. Just a matter of looking through each of the sub-directories to find the app required. Make a note of the location and then go back into Layout to link.
Actually, #close_active exits the current edit context, aka active_entities, (belonging to a group or component) and returns to its parent (an enclosing group, component, or the model). Since the selection can contain entities from only one context at a time, all of the currently selected entities have to be in the active context and have to be cleared when you close it.
You have the center, radius and normal before you add the circle.
Then when you add the circle it returns an array of edges
edges = entities.add_circle(...)
From any one of those edges you can get the ArcCurve, and from that you can get its center, radius and normal.
I still think this can be done more simply.
But if you have something that works... then go with it... π