First idea that comes to my mind, is that you have shortcut on "Close All Tables" and some key combination you are using, is triggering that

Though it should prompt you to save your work as you have maybe done changes to your table

You can check your shortcuts from View > Customize > Menus and Toolbars

-Jarmo