Fix running out of fd's