fix memory leak on shader shutdown