Reopening stdin, stdout and stderr if they are pointing to /dev/null.

nit: errors start with a lowercase letter. Here and throughout.