wait for containers to finish, deal with timeout