add callback in case of connection failure
log error in streamError instead of creating new one