Fixed function returning undefined instead of null
Slight change in the way audioDeviceFailed signals are handled, and added some debug information for audio devices