check if staging is running before swap and wait until all instance are down after stopping staging