brutal fix for "File descriptor 3 (/dev/null) leaked. pt II"