Making mnesia table destruction safer