Fixes issue when fsockopen fails

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.