fix goroutines not exit