I don't think we should kill the upload when closing the modal. Currently, the modal is quite easy to close and it could result in unwanted behavior when accidentally closing it during upload. Instead, it's better to prevent closing when the upload is in progress. We can then also remove all abort related code.