Make a copy of the hook for the closed goroutine