I'm trying to understand the connection between closed subschemes and closed immersions. More precisely, the notion of closed subscheme of a scheme $X$ I'm working with is that of a closed subspace $i:Z\hookrightarrow X$ and a sheaf of ideals $\mathcal{I}\subseteq\mathcal{O}_X$ such that $(Z,\mathcal{O}_Z:=i^{-1}\mathcal{O}_X/\mathcal{I})$ is a scheme, such that $Z=\operatorname{supp}\mathcal{O}_X/\mathcal{I}$. I'm trying to see that the inclusion $(i,i^\flat):(Z,\mathcal{O}_Z)\rightarrow(X,\mathcal{O}_X)$ is a closed immersion (by working through the definition rigorously, instead of accepting this rather as "intuitively true") so basically that $i^{\flat}:\mathcal{O}_X\rightarrow \mathcal{O}_Z$ is surjective. However, I even don't know how to define $i^{\flat}$ correctly. The thing I can think of now is the adjunction $$\operatorname{Hom}(i^{-1}(\mathcal{O}_X/\mathcal{I}),i^{-1}(\mathcal{O}_X/\mathcal{I}))\rightarrow\operatorname{Hom}(\mathcal{O}_X/\mathcal{I},i_*i^{-1}\mathcal{O}_X/\mathcal{I}),$$ so that I get a morphism $\eta:\mathcal{O}_X/\mathcal{I}\rightarrow i_*i^{-1}\mathcal{O}_X/\mathcal{I}$ of sheafs corresponding to the identity.
Question 1: As $i^{\flat}$ I would take $\mathcal{O}_X\rightarrow \mathcal{O}_X/\mathcal{I}\stackrel{\eta}{\rightarrow}i_*i^{-1}\mathcal{O}_X/\mathcal{I}=i_*\mathcal{O}_Z,$ is this correct?
Question 2: Why is this surjective? That the first morphism is surjective I see, but why is $\eta$?
Edit: I saw this related question, Why a closed subscheme give rise to a closed immersion, but it doesn't answer my question.