Mate.Driver.close

You're seeing just the callback close, go back to Mate.Driver module for more information.
Link to this callback

close(session)

View Source (optional)

Specs

close(session :: Mate.Session.t()) :: {:ok, Mate.Session.t()}

This one is optional and can be used to close the current connection, cleanup or whatever else might be needed.