Added onCloseClick callback.