Creates a new thread handler with given thread. thread is used as a template and this particular instance will not be updated in response to changes in the handler.
recovered from threads callback