catch 0.8.5 crash: race between doConnect and unRegisterCallback
xep-0280: add preferences option