Adapt to new Trollius version
Fixed stopping watching file descriptor