Ensure the main thread terminates if compilation fails
Ensure the main thread terminates if compilation fails

fixes AccelerateHS/accelerate#212

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