Shutdown ping thread gracefully.