If error is not displayed in web browser then it will be caught in shutdown hook, so we can show it to user