raise the Cocaine command line error after we retry the fetch twice when  synchronizing the repo

@robolson 

And add logging for Cocaine