Close or Kill a node js realm sync process for a synced realm

Realm process does not exit when I am closing realm only in case of synced realm. My main issue is I am using Synced Realm with Electron and when I close the electron application, it keeps running in background (doesn’t get killed, the synced realm process keeps running)

I tried opening a non synced realm and the process was exiting gracefully.

Is there a way to kill the realm sync process?

Github Issue - Close or Kill a realm sync process for a synced realm · Issue #6006 · realm/realm-js · GitHub