using kill channel to remove goroutines.