I would prefer triggering close event on the modal instead of calling this method directly, but we can discuss this one.