Don't wait anymore that processes have finished. Simply connect the finished signal to deleteLater().
Attach a file by drag & drop or click to upload