This question came from Dugundji's $\textit{Topology}$: Given a compact, connected space $X$, let $A \subset X$ be closed. Prove that there exists a closed, connected set $B \subset X$ such that $A \subset B$ and any proper subset of $B$ is either not connected, not closed, or does not contain $A$. The text has an annoying habit of not stating whether the space is assumed to be Hausdorff.
My attempt at a proof seems to work for Hausdorff spaces, but it doesn't rely fundamentally on a lot of the hypotheses and feels rather inelegant.
If such a $B$ does not exist, then for any $B$ which is connected, closed, and contains $A$, there exists a $B' \subset B$ which also satisfies those conditions. Clearly $X$ is an example of a set which does satisfy the conditions, so at least one such set exists. Order subsets of $X$ which are closed, connected, and contain $A$ by reverse inclusion (i.e. $U > V$ if $U \subset V$ and $U \neq V$). Each chain of subsets has an upper bound: let $B_i$ satisfy the hypotheses and let $B_{n+1} \subset B_n$. Then $B_N = \cap_1^\infty B_i$ is clearly closed and contains $A$. By the result mentioned here: Arbitrary intersection of closed, connected subsets of a compact space connected? , $B_N$ is connected if $X$ is Hausdorff. Thus $B_N$ is an upper bound for the chain $\{B_i\}$. By Zorn's Lemma, this collection has a maximal element, which would have to be the set $B$ needed.
I could not find an counterexample among non-Hausdorff spaces, so I would love to see one or a proof of the general case. In addition, the hypothesis that $A$ is closed isn't used anywhere here.
I'd love to see anyone's attempts at this problem!