the newSession calls connect_dcb and then the connect() in mysql_backend.c
The selected backend is always the last one ath the moment.
For the transparent Authentication dcb->data is used to store MySQL session data before starting the session.
This could be revisited.
Please note the COM_QUIT in mysql_client.c has the close functionalities but they are now disabled for testing/debug