Fix sogo-tool when cleaning up devices