If you really need it to close out you can also use Environment.Exit(), but it is not graceful at all (more like ending the process).
Use it as follows:
Environment.Exit(0) If you really need it to close out you can also use Environment.Exit(), but it is not graceful at all (more like ending the process).
Use it as follows:
Environment.Exit(0)