catch curl exception

catch curl exception