Changed the goal failure to avoid logical memleaks