fix error listener leak on connection object