PMPHandler and "Close" function

Good afternoon, everybody.

What is the difference between "public void OnClose (int reason)" and "public void AfterClose ()" in addition to using PMPHandler reason? When should I use "OnClose" and when "AfterClose"?

SolidworksApi macros