fix destroying connections

the __destroy_connection() function was not changed for
the Connection class and called disconnect wrongly.