MainForm.ActiveMDIChild.Close;procedure TChildForm.FormClose(....);
begin
  Action := caFree;
end;