wait for stop goroutines