external.CloseWindow();
Although you can use window.close method, this alternative method allows you close the ALPFrame window more gracefully - without warning message which will appear otherwise.
Applies to: external