Don't try to close stderr if it's not there