Fix rotten repo-*.sqlite when ^C is hit