Grrr, I’m really silly: we have the same problem (copying the database before the daemon has been stopped) just a few lines above. How about this: