If you are terminated from employment, such as because your location is closing, then you would no longer be bound by the non-competition agreement, unless you received something specifically for signing it, other than your employment e.g. they gave you some bonus or payment just for signing the non-compete in the absence of such independent "consideration" for the agreement, termination of employment releases you from the non-competition agreement. The law doesn't let the employer fire or terminate you while preventing you from working elsewhere.If you were offered a job by this employer at another location that is within a reasonably commutable distance, however, then the non-compete would most likely  still be in force.