add a 1 second timeout for threads to return