State tax filing

By the treaty, you become a US tax resident, and a Cdn non-resident the day you leave, not simply after spending the required days in US.