Updated uninstall function to remove the node queue