The state seemed at relative calm compared to the rest of the country due to its close ties to the United States until 1841. In which year did the state begin to reinforce defense