/// <summary>Stops the MiniKdc</summary> public virtual void Stop() { lock (this) { if (kdc != null) { Runtime.GetProperties().Remove(JavaSecurityKrb5Conf); Runtime.GetProperties().Remove(SunSecurityKrb5Debug); kdc.Stop(); try { ds.Shutdown(); } catch (Exception ex) { Log.Error("Could not shutdown ApacheDS properly: {}", ex.ToString(), ex); } } Delete(workDir); } }