add alert message for when safari is not running
fix error when safari has no windows (fixes #6)