only leave thread before redirector call