Fixed some bugs in the destruction of the tagger.