Emit error when download fails