title: In a “using” block is an OracleConnection closed
body: <p>In a “using” block is an OracleConnection closed if System.Environment.Exit(0) is issued in the catch statement?</p>
  
  <p>Example:</p>
  
  <pre><code>        OracleConnection oracleConnection = getOracleConnection();
  
          using (oracleConnection)
          {
  
              try
              {
  
                  oracleConnection.Open();
                  OracleCommand cmd = getApplicantsCmd(oracleConnection);
                  OracleDataReader rdr = cmd.ExecuteReader(); 
  
                  List&lt;Applicant&gt; applicants = new List&lt;Applicant&gt;();
                  while (rdr.Read())
                  {
                      Applicant applicant = new Applicant();
                      applicant.email = (string)rdr["GOREMAL_EMAIL_ADDRESS"];
                      applicants.Add(applicant);                   
                  }
  
                  return applicants;
  
              }
              catch (Exception ex)
              {
                  Console.WriteLine("Failure getting applicant records: " + ex.Message);
                  System.Environment.Exit(0);
                  return null;
              }
          }
  </code></pre>
  
  <p>I want execution to stop if an exception is thrown while looking up the records.</p>
  
  <p>Is there a better way to handle this?  </p>