Refresh the list of packages after uninstalling finishes
Hide the console window
Small code cleanup