Fixed issued with restarting ssl based servers when using replicasets