Electron shell can we close Explorer


In my Electron I open an Explorer to let the user be able to drag and drop some files by the command:
But on the click of a cancel button I would like to close this Explorer instance, is there a way of doing this or getting a reference on this Explorer window to be able to close it by another Api?