close fsockopen before follow redirect