how to call function to shotdown my system in my app. Can show me some sample code . thanks.