bugfix: ensure both user and identity documents are destroyed if there is a problem creating the account.