[close-callback] Created a new feature which allows for a callback funct...

...ion to be triggered once the close event has completed, added unit test for this method and updated the readme.md to include this new method as well as a code snippet on how to use the close method externally