shutdownthread: try to fix te damn errors