[Issue 9776] Deleting syncrepl config does not close the connection to the provider