if suppose your page was popup u can close by using window.close()
here u can use instead of
Page.ClientScript.RegisterStartupScript
ClientScript.RegisterClientScriptBlock
otherwise go back one step of your history by using JavaScript
end of your saving code if it is popup
ClientScript.RegisterClientScriptBlock(Page.GetType(), "script", "window.close();", true);