Code to allow classes to be started-up and then shutdown later to conserve resources.