Handle failed build