added close functionality
Merge pull request #10 from Velaport/let-417

added close functionality