dcd: improve shutdown, addition of import paths, timeouts