Clear servicedependencies table after reconnect.

Fixes #5714