Pass the custom classloader to the startup and shutdown methods.