Expose method for closing the HTTP session.