Ensure importcertificatefromfilescommand finishes
This fixes another issue where Kleopatra would report on exit that there are running commands.