Fixed the "continued execution" problem
Changed exit code in Environment.Exit()