remote managers watch for more kinds of exceptions
reformat code for readability