fix AwsApi destroy failed