#141 fix table open and close race