desingleton the C++ BDM
cleanup of the main thread thing