Failing gracefully when target elelment no longer present