try set logindetails to (do shell script "curl google.com") on error display dialog "Unable to connect." quit end try When I put my network down, it gives me an error saying "unable to resolve host" and it never quits the application rather it stays in the background.
Is there a proper way to quit the application when unable to connect to the server or any other command to force quit or suppress and continue.