Added function to uninstall inactive ports