Close cleans up resources initialized by goworker. This will be called by Work when cleaning up. However, if you are using the Init function to access goworker functions and configuration without processing jobs by calling Work, you should run this function when cleaning up. For example,

if err := goworker.Init(); err != nil {
	fmt.Println("Error:", err)
defer goworker.Close()

Close is referenced in 1 repository