When returning rows without closing the result set that the rows came from, a crash occurs.
mux.requestConnection().then(conn) => { return conn.execute(query).then((results) => { const rows = results?.getRows().then(r) => { return results?.close().then(() => r); // without this line a crash occurs }) return rows }) })