check for session manager initialized when shutdown