add logsync on teardown