Workers: Avoiding memory leaks