Exit process if ninja compilation fails

Change-Id: I2d9d943469fc9c971cd202e733d5330bccde9ffd