OP should probably take sensible precautions like saving all his e-mails (off of company machines!) and staying on friendly terms with other employees who might one day be called as witnesses. But I wouldn't recommend "ragequitting", just go politely.