feat: add close options
doc: update example with close options
Merge pull request #1 from Envoc/feat/close

Feat/close