More debugging

Now when a random (not known) error happens on adding host, installing packages or uninstalling packages, it outputs more debug information