Make sure logout is completed before calling callback, including XDLS.