cleanup of examples project and added support for async closure to call the after() method