Let $M$ be a smooth manifold and $N\subset M$ a connected embedded submanifold which is not topologically closed. Assume that $\bar{N}\setminus N$ is a smooth embedded submanifold (where $\bar{N}$ is the closure of $N$).
Question: Then is $\bar{N}$ a smooth embedded submanifold with boundary? If not, what assumptions can be added to ensure this?
The answer is yes in the special case that $N$ is an open subset of $M$, although this question contains an example showing that if $N$ is not connected, then the manifold boundary of $N$ need not coincide with $\bar{N}\setminus N$, which is equal to $\bar{N}\setminus \text{int}(N)$ in this case.
Edit: as pointed out by Anubhav with the cone counterexample, the answer is negative for the question as stated. But the cone counterexample seems to produce a “closure boundary” which is, in some sense, inconsistent with what the manifold boundary “should be”.
So, what if the “closure boundary” is required to be consistent with what the manifold boundary should be? E.g., if I have an embedded open 2-disk, what if I require its closure boundary to be a circle? Would that guarantee that the closure is a smooth embedded closed 2-disk?
Edit 2: I thought of an example. Consider a trajectory with nonzero initial condition of the dynamical system $\dot{z} = (a+ib)z$ on $\mathbb{C}$ with $a < 0$ and $b \neq 0$. This trajectory spirals towards $0$, and I believe it is an embedded submanifold. Taking the closure of this trajectory adds $0$ (which consistent with what the manifold boundary "should be"), and I believe the closure is locally connected and homeomorphic to $[0,1]$. However the closure cannot be diffeomorphic to $[0,1]$ because any such homeomorphism cannot be differentiable at $1$ (the difference quotient vectors spiral infinitely fast near $1$ and hence their angles cannot converge).
This is consistent with a result John mentioned in the comments holding only in the topological category.