Merge pull request #877 from KWierso/833171

Fix bug 833171 - system/events example needs to be a strong reference(cherry picked from commit b87a095eb0d1792352848337c5f9113862c14a61)