Remove waiting flag after catch an exception.