In general, a private employer may legally fire an employee at any time and for any reason. The basic exceptions are as follows:

1. Certain reasons are illegal (e.g., discrimination on the basis of race, ethnicity, gender, religion, etc.).
2. Some employees have contracts with their employers that limit the employers' ability to fire the employees.
3. Some employees are members of labor unions that have collective bargaining agreements with the employers that limit the employers' ability to fire employee-members of the union.

None of these seem to apply to you, so your employer likely does not need a "loophole" if it wants to fire you.