public function unregisterStream($protocol)
    {
        if (isset(self::$streams[$protocol])) {
            $result = stream_wrapper_unregister($protocol);
            if ($result === true) {
                unset(self::$streams[$protocol]);
            }
        }

        return $this;
    }