Update index.js

destroy always emits close event