fix thread test = shutdown