If you have a closer connection to another country for tax purposes, you can avoid the US tax consequences by filing the form 8840 with IRS. If you are a Canadian resident, spend most of your time here in Canada and file your taxes, you have a closer connection to Canada.
You have a closer connection to Canada if you have spent less than 183 days in the US during the current calendar year, your tax home is in Canada and you can demonstrate that your Canadian connection is closer than the connection with the United States.