Package API: close method added