iPad Air bedtime alarm sample loops indefinitely when stopped after upgrade to iOS 11
The workaround is to unplug the IPad over the night. For some strange reason sound looping is not happening, if the power is not supplied during the alarm sound. Software fix is not available so far.

Suggested here: https://discussions.apple.com/message/32517010#message32517010