fix close
Merge pull request #524 from luvit/fixes/fix_ecancelled

fix close