test: Add 1 second delay between closing daemon and deleting log file.