Add close-handler to flash messages

- added close-handler to flash messages
Merge pull request #1691 from opf/feature/flash-messages-close-handler

Add close-handler to flash messages