API Tasks › Closing the API
When the client of the API has finished accessing the model, the sessions that were open must be closed, and the persistence unit collection must be cleared.