How to make ffplay exit after it finishes playing a file

(Using the -t option causes ffplay to hang.)

ffplay -autoexit -t 10 my-audio-file.flac