Returning exception on unload of table without class. Part of #2073.