Cancel request on certificate verification failed (iOS)

I noticed that the request is not cancelled if ServicePointManager.ServerCertificateValidationCallback returns false