Handle errors when uploading the context