Related to #217 Add a proper documentation for `close()` function. Also add an example of cluster workflow that would utilize `close()` at the end.