Made ThreadTask sealed