Remove removed apps settings
Refine connection failure handling when the replica set cluster is recovering