add a thread detach on the deployment script