Closing connections before erasing them.
Bugfix.
Further bug fixes to VaultManager.
Compiler warning fix.
minor updates. (wip)