cleanup connection manager