This is expected in some environments but does not mean the install failed.
If the configuration part times out and gives the Deployment failed error, the CWP agent continues and finishes the install.
Confirm on the instance itself or in the CWP Portal whether the install failed or not.
In most cases the CWP Agent install is successful.