fix leak with "drain" event on connection object