Fix wait_for_build to stop pinging after complete