stop infinite recursive loop caused by error handling code not returning.