Added try/catch #5427

Nit: this should be `} catch (e) {}`.