Update various Environment.Exit() calls to use non-zero exit codes to properly indicate a failure.
In the primary catch {} block of the Main() function, wait for user keypress before exiting, so users have a chance to see the error if they are not running it underneath an existing console window.
Environment.Exit()
calls to use non-zero exit codes to properly indicate a failure.catch {}
block of theMain()
function, wait for user keypress before exiting, so users have a chance to see the error if they are not running it underneath an existing console window.