destroy the connections listeners on the 'close' event so we maintain backwords compatibility with node v0.8.x