1)Add "context" object to RootEngine; 2)Force program exit to avoid thread hanging-up