Set up a catch for an error that sometimes appears.