added exit status check for hompage availability