Added try/catch.