[notify_close] add close notification

- create code to do this notification
- improve test on checking open event - it does now a checking with high
  level call (no more useless call to private method).
I think you can skip this comment.