Fixed forestry crash and added try-catches to prevent future crashes.