Fixed plugin unloading.