Added on-close attribute for setting handler after modal is closed.