tin zar
I tried with Application.current.Exit();
These action has error because of using the PDF libraries.