I once was fired for being a top performer but being a contractor. Me and another guy were doing 45% of all the IT help desk work for a top American insurance company. Then one day th company that employed us had their contract terminated. This means that we were asked to leave. In the exit interview I asked if it was performance based, because I felt we did most of the work, they complemented my performance and even noticed that I was the best at making coffee but they had to start making better financial choices and we were welcome to apply for full time work with the company.
Funny how it worked out because the next job was the one that really put me into the career position.
So I have to say that sometimes bad things happen when it's not your fault but it can be a blessing in disguise. You might be opening a door to something better.
Feel like I'm about to end up in the same position myself. Luckily I can back myself as I really wouldn't like to be an employee at this place I'm contracting for.