Destroy the currently open GMT API session.
pygmt.clib.Sessionas a context manager in a
withblock is preferred over calling
GMT_Destroy_Sessionto terminate and free the memory of a registered
GMTAPI_CTRLsession (the pointer for this struct is stored in the
Always use this method after you are done using a C API session. The session needs to be destroyed before creating a new one. Otherwise, some of the configuration files might be left behind and can influence subsequent API calls.