Added try/catch #5427

Nit: unnecessary newline.