fix bug where remote usage will throw an error if the calling window closes before the notification.
fix bug where remote usage will throw an error if the calling window closes before the notification.

blainesch/electron-notifications,blainesch/electron-notifications