WIP: close (TODO: provide API documenation)