Companies should also remove your trading window when you exit the company.
It is only insider trading if you are basing your trades on insider information. If your only reason for selling is “I just got laid off and need the cash” then you should be fine