Added callback onCloseClick

Usecase:
When a user tries to execute an action without being logged in, show a message "You need to login to do X. Click here to log in."

In this case, we have only one choice, so using buttons adds unnecessary clutter.