Added close API.