Fixed cleanup of on-connection callbacks.

Remove the callback entry from the collection, rather than keeping the entry in the collection but setting its callback to 'undefined'.