Brought back OnCleanup event handler

for Excel app to save, quit and cleanup on Dynamo close.