Bumble Bee Foods has agreed to dish out $6 million to settle a 2012 criminal lawsuit over the horrific death of an employee who was cooked alive in an oven with tons of tuna fish.

The grisly accident occurred on Oct. 11, 2012, when 62-year-old Jose Melena was making repairs inside of an industrial pressure cooker at the company's Sante Fe Springs plant in Southern California. However, his coworkers were not aware that he was inside of the machine and subsequently loaded about 12,000 pounds of tuna into the oven, before shutting the door and turning it on. As a result, Melena was trapped in the 35-foot long pressure cooker and burned to death as the temperatures soared to 270 degrees, reports The Guardian.

His body was found hours later once the pressure cooker was turned off and employees opened it up.

Bumble Bee agreed to pay $6 million at a court hearing on Wednesday, according to the Los Angeles Times. Under the settlement terms, the victim's family will receive $1.5 million while $3 million will be designated to buy new automated ovens. Meanwhile, about $750,000 will go to the district attorney's Environmental Enforcement Fund. The rest will go toward covering fines, penalties and court costs.

After pleading guilty to breaking lockout rules, former Bumble Bee safety manager Saul Florez was sentenced to three years of probation and forced to pay $19,000 in penalties and fines. In addition, Bumble Bee's director of plant operations, Angel Rodriguez, was sentenced to pay fines and complete community service, CBS Los Angeles reports.

"This is the worst circumstances of death I have ever, ever witnessed," Deputy District Attorney Hoon Chun told the AP. "I think any person would prefer to be - if they had to die some way - would prefer to be shot or stabbed than to be slowly cooked in an oven."

"Certainly, nothing will bring back our dad, and our mom will not have her husband back, but much can be done to ensure this terrible accident does not happen again," said the family in a statement.