Ability to close invalid expression