The local keys should be cleaned up when the synchronisation with notary server fails or it should be prevented to create duplicate keys.