Added try/catch

Nothing fancy.