Make CloseEvent available to userland

now you can get close status and reason from close handler for debugging purpose.
[feature] Build new.