When the pod is terminated, the below script is run as part of preStop hook. Problem: The curl to google or other apis works fine and returns the value when the script is ru