fix(sync_worker): make sure end event will emit