Failed builds returncorrect status