Being a mechanical engineer in a dying company will be unpleasant no matter how much you love mechanical engineering. You can be a great mortician but if the company can’t get credit to buy caskets and supplies, there won’t be much business. If you love recruiting and the economy goes south, the pickings will be slim. Being a great petroleum engineer may not be all that cool at a place with a reputation like BP.