Properly tidy up plugins on remove of a table