addresses #164 where server crashes after browser is reloaded
Added debug logs for unregistering folder watchers