Handle failed builds gracefully.