Corrected exception handling code.