Try forcing the program to close if you're having difficulties getting Safari to reply. Hit the Apple menu button. Choose Force Quit. Click Safari from the list of applications. Verify what you've done.