Fix that made log file to fill with errors when fsockopen failed

If fsockopen failed, the script would continue and loop forever (while
(!feof($fs))) filling the CodeIgniter Log File with errors. This
modification fixes that problem.