Added try statements