try catch, on getting canvas context