public function isTerminated( $throwExceptionIfTerminated = true )
    {
        if( $this->terminated ) {
            if( $throwExceptionIfTerminated ) {
                throw new ConnectionTerminatedException( $this );
            }
            return true;
        }
        return false;
    }