The Front End automatically performs two functions when using a Dynamic Library.
called the first time the library has been loaded.
called when the front end stops.