moved save function on Build itself
fixed saving build
Fixed CircularJSON
Save build log even when agent disconnects