Fix sometimes app not exiting.

This was reproducible on OS X with GPU processing and adding clip to a
playlist.