Do not use threads::shared because it is horribly unstable on Windows