Make sure context is current before destroying it.
Make sure context is current before destroying it.

mwu-tow/accelerate-cuda,mwu-tow/accelerate-cuda,flowbox-public/accelerate-cuda,tmcdonell/accelerate-cuda,AccelerateHS/accelerate-cuda,AccelerateHS/accelerate-cuda,tmcdonell/accelerate-cuda,flowbox-public/accelerate-cuda,AccelerateHS/accelerate-cuda,mwu-tow/accelerate-cuda,flowbox-public/accelerate-cuda,tmcdonell/accelerate-cuda