function close() {
        _close(true);
        return new $.Deferred().resolve().promise();
    }
Closes all active connections.
Returns a resolved promise for API compatibility.
@return {$.Promise} A resolved promise