Add dispose() to api doc