How to close a vertex AI chat session?

Hello,

I am creating a chat session, conducting a series of automatic requests but I can’t find a way using the python API to close the session in order to initiate another and not leave the context alive.

I am creating the session using:

chat_model = GenerativeModel('gemini-pro')
chat_model.start_chat()

The underlying reason why I wan to close the session is because we are getting a ResponseBlockedError when sending a message and after trying other sources, we believe having too many sessions opened could be the reason.

Any help will be highly appreciated.

Thank you.