added error catch for fs.watch