Fixed account deletion

Implemented a workaround to delete an account. Postponed account
deletion on the server side to allow client code to finish with a
correct (existing) account.