closing connections after metrics execute

Change-Id: I537595c5353906aeb2368f69a973f69af2cda60d