Fixed "Too many open files" error.