Handle installation errors more gracefully.