Dismiss delete confirmation dialog before orintation change (on pause) to avoid window leak