PT-46899091:  Set entitydb pointers to NULL to avoid double deletion during shut down