Added fortran exception handling