Some corrections to the driver destruction function, we only cancel if we're rendering, and will also unlock the target