clean up internal connection object