If you are a citizen of an EU member state (not the UK, Romania or Bulgaria) and were working (or otherwise exercising your treaty rights) in the UK, then nobody should have told you to leave. Who told you and exactly what did they say? No one asked me to leave but my husband. We are in Ireland now...