added transition to :failed state on possible errors on build running