Fixed bug while unloading plugins causes kernel panic