Standardise onClose across iOS and Android.