deinit_gpu_recording - cut down on duplicated code