Changed ERROR state to FAILED state