Add logging of failure cases