BUG: Fix to exit build early in case of failure