Fixed the TRY statements. Now they handle only the expected exceptions.