Disconnect on exit

Once the work is done, close the connections.

Signed-off-by: Francis Giraldeau <francis.giraldeau@gmail.com>