stop sync in linux before killing daemon