error in stdout closing, fixed url parsing in google alerts