Fixed the error upon quitting watching the current folder