handle SystemError/Too many opened files