added deactivate, activate callback notifications
added comment to application_closing handler
Merge branch 'origin/RMS_4_1'