Send presence only to resources in active sessions.
Proper ordering of shutdown tasks.