To prevent us from losing any results when Spot Instances are terminated, we need to detect Termination Notice and trigger result sync.
More info about AWS Spot Instance Termination Notice: https://aws.amazon.com/blogs/aws/new-ec2-spot-instance-termination-notices/