Switch the worker and master variables: The master may never be destroyed until the worker has finished