Add "Internal error: ..." check