async close support
Merge pull request #632 from wenshao/master

async close support