error handling for watch and listener function
error hadling for $evalAsync