Potential segfault when calling setCredentials and setAccountDetails at the same time
Bot method unregister the account for doing modifications. If calling at the same time, this can lead to a segfault.
i think doRegister_/other similar methods should be queued or protected by a lock