codeintel: only need to destroy the codeintel instance once

(integrated from master branch change 2b7afe4 by Todd Whiteman <toddw@activestate.com>)