Catching Composer exceptions