open (STDERR, "> error.log") or die "Error: couldn't redirect STDERR: $!\n";