exit function causes the script to terminate immediately.
It can be used to quit a script from within a complicated set of
function calls, which might otherwise require numerous returns and
checks. An optional exit code
$code may be given; the default
exit returns nothing.
State information may be lost if
$url hasn't been printed yet.