Ensure data is in sync before closing the editor
We need to monitor the status of sync request received from the web client and prevent window closing before all the data is flushed.
We need to monitor the status of sync request received from the web client and prevent window closing before all the data is flushed.