Change the opencl shutdown sequence.