Thanks for this message. I have only tried Xvfb a few times to make sure it works, and not recently.
If there were a way to detect this situation, the "detach" function could be automatically skipped.
I suppose it might be done with the xdpyinfo command or something like it.