ariya/phantomjs — pull request #350 by jonatasnona (2012-12-05 17:28:31+00:00)
Title: Closes detectsniff example when a page could not be opened 

when the status of the request failed, the script still running instead of closing.