Saucy O'Path's answer looks OK, but maybe derivatives give a more familiar counterexample. Let
$$
Af(x)=f'(x), \qquad f\in C^1([0, 1])
$$
denote a linear operator $A\colon C^1\subset L^2\to L^2$. This operator is not continuous; for example,
$$
\lVert \sin(2\pi n\cdot)\rVert_2=\sqrt{\frac{\pi}{2}},\quad \forall n\in\mathbb N,\ \text{ but }\lim_{n\to \infty}\lVert A\sin(2\pi n\cdot) \rVert_2=\infty.$$
However, the kernel of $A$ consists of the subspace of constant functions, which is closed in $L^2$. (Proof: if a sequence of constants is Cauchy with respect to the $L^2(0,1)$ norm, then it is Cauchy as a sequence of constants, hence converges to a constant limit).