Fix lifecyle management of global glslManager.