0.0.16
- due to untrustable
closeevent, we move close event handler to a standalone function, and call it from both close and offline event.
close event, we move close event handler to a standalone function, and call it from both close and offline event.