close all open fd's on fork