Reliable Robotic Task Execution in the Face of Anomalies