fix restart bamboo even if return code is 0