Close curl connection