terminate

external fun terminate()

Call this manually when you're finished to destruct the environment. This WILL NOT be called automatically.

 

If you would like to automatically call this, try a use with resources block. E.g. Magick.initialize().use { }