assuming there is only one child window, and if you want more than one. Typically one might think to use a destructor such as ~form(); however, in big programs there are many forms, and more then one kind of form can be active, ex: form1, form10, so destructors dont apply here, just need to know how you close the active child window which is a extremely simple request.
Thanks