recover from unterminated records