monitor directory and flush closed files after lifepsan expires