Kyle knows that he can make the best of any situation.

When his boss fired him, he held back tears and focused on the positives.

In June of last year, McCann joined VizyPay, a startup that designs payment technology solutions for small and mid-sized businesses across the U.S.

He signed several new accounts in his first two weeks on the job after he was hired as the second employee.

Business slowed down quite a bit. He didn't sign a new customer for weeks. He told CNBC Make It that he thought it would be the easiest job in the world. I thought I was a closer out on the field.

When Austin Mac Nab, the founder and CEO of VizyPay, sent him a text one Friday afternoon in late July, he knew he was toast. He says that he knew that he was going to be fired. I decided to go into that meeting with a positive mindset.

When he walked into the meeting with his boss, he thought about how he would pay his rent.

He and his girlfriend, Shannon, who was working a temp job at Wells Fargo Home Mortgage, had just moved to an apartment in Waukee. I tried to remember that everything happens for a reason, but I was afraid.

After Mac Nab told him he was getting fired, he remained calm and upbeat, thanking his boss for the opportunity and asking for feedback on his performance.

He didn't give me a lot of excuses as to why he failed. He held himself accountable to the fact that this job was not for him.

Mac Nab was questioning his decision to allow the recent hire to leave the company. Mac Nab says that he felt he was genuine and authentic and that his gut instinct kicked in when they talked. I thought, "I have to keep him somewhere else, just not in this job."

After Mac Nab fired McCann from his role as an account manager, he offered him another job at the end of the meeting that he thought might be a better fit for McCann's skills and friendly personality.

The offer came with a lower salary than what he was making in his previous job, and would be enough to cover his bills. After talking it over with Shannon, he accepted it to Mac Nab.

"I had leads that paid more, but I saw something special in VizyPay." I wanted to stay with the company because I really believed in their vision.

Kyle, Shannon, and Austin were at the headquarters.

The photo was taken by Kyle.

Five years later, he still works at the company, and it now has 91 employees. He and Shannon are married and she is the director of marketing and sales.

He says that the meeting where he was fired as a defining moment in his life taught himpatience, the definition of grinding it out, and belief in himself.

Mac Nab and McCann agree that there are a couple of things you should keep in mind when leaving a job.

  • Don’t be defensive: Ask for feedback and recognize where you could have improved in the role. 
  • Keep your emotions in check: If you lose your cool, you could jeopardize a return offer, or your employer could be less amenable to negotiating your severance package or providing a reference for a different job. 
  • Maintain an attitude of gratitude: Thank your employer for the opportunity and highlight some of the positive takeaways you have from the experience. 

Having a positive attitude and always being willing to put in the hard work can open a lot of doors. Being able to prove what I can do has led to a career that makes me really, really happy.

You can check it out.

It is possible to find some of the best jobs on hidden job boards.

Microsoft says the 2 things will stop Gen Z and the younger generation from quitting.

Entrepreneurs who have raised millions of dollars on their best work advice: careers are like spiderwebs.

You can get smarter about your money and career by signing up for our weekly newsletter.

This 31-year-old brings in $300K with his vending machine business — here's how