Add error message for when an evironment closes with unbalanced braces.  Resolves issue #454.