checks if web application is up, if not sends a mail