Helps onSessionEnd with missing Application scope

This may not be mergable perfect code, this is an idea of how to resolve an issue on the Mura email list.