close when error is not successful
document why path currently is not a