The highest possible exit temperature would be if we did not get any work out, i.e. the turbine broke down. Now we have a throttle process with constant h assuming we do not have a significant exit velocity.
Exit: 40 psia, h = hin = 1477.04 Btu/lbm ⇒ T = 889 F
Efficiency: η = w/ws = 0
Remark: Since process is irreversible there is no area under curve in T-s diagram that correspond to a q, nor is there any area in the P-v diagram corresponding to a shaft work.