refs #546 call the plugins uninstall method before uninstalling it