Fixed an issue where hitting the 'Stop' button after the CD was finished
made CDPlayer crash.
The problem was that the [output closeDevice] method would get stuck for
threaded outputs due to a deadlock on the stopRequested variable.