Fix goroutine closure bug under for-loop and finish function to get all machine info from ip