Fix bug that caused executeEntry goroutines to not terminate