Costa recovering after emergency surgery scare