python launcelot poll fix

close fd immediately when EOF
Otherwise there may be a 'connection reset by peer' in client