Remove exit for invalid document