make sure the type parser gets restored in the event of an error