It could happend that the JS BrowserWindow object being double deleted when calling the destroy() method.