Bit to close all the psycopg2 connections on kill