Restart threads by abstracting out the clcontext initialisation and using that instead of probing all cards.