Enable connection shutdown neatly.