for the performance issue, company usually will layoff not fire. If you got fired, there must something wrong with your personality