If you want to catch all exceptions, it has to be ``\Exception``. Otherwise, you are only catching ``Composer\Util\Exception`` (i.e. nothing as this exception does not exist)