Adds connection/disconnection events throwing.