better report connection errors
add various connection-related events