Better support for connection events.