Handle errors while getting media