The Selecotr that is opened on line 64 in never closed. This will eventually cause a "Too many files open" Exception.