chromecast: fix block leak in case of error