Calling OpenTables or CloseTables is not allowed while either of those methods are in the process of executing. (Error 2147)
The OpenTables or CloseTables methods cannot be called, in either the BeforeOpenTables or AfterCloseTables events, as these events are not recursive.