also cleanup left-over new certificate directory when certificate check fails on newly imported directory