Added warning when failed to open output device