Handle 404 gracefully and also handle unexpected error without dumping stack