handle error unlinking file in watch