I am trying to download a file via electron-dl and I want to gracefully end the download in case the internet goes off. I want to send a main to renderer event in case the download interrupts because of internet connection breaking down. How can I achieve that? Thanks in advance. :)