add ConnectionResource to handle closure of connection resources on completion