i made some code which actually closes the window but before the window closes there is an error appears for a second then the window closes, here is the code i wrote in the exit button:HttpContext.Current.Response.Write("<script>window.open('','_self','');window.close();</script>");