Switch to program 0 before destroying the shaders.