cleanup file descriptors of killed processes