(CLOSE-GRAPH)

This turns the video adapter back to text mode, and unloads the driver from memory. You should always use CLOSE-GRAPH at the end of your graph programs, or you have risks to load another copy of BGI driver into memory each time you start it, which would cause sooner or later a fatal out-of-memory error.