When a pod is being terminated, the pre-stop hooks of all the containers will be run before the containers are stopped.