close sessions at the end of all requests