Copied listener thread handling from Vagrant's rsync_auto - Fix for
https://github.com/mrdavidlaing/vagrant-unison/issues/8