stop watcher thread on close

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
v1.3

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>