refs #5920 adds some more error trapping