Added removing SunPKCS11 security provider at the end.