Finish sync task