Fix problem with closing stderr in add.c