emit close to fix issues in watchify and possibly others
3.37.2