He probably shouldn't have tossed his bat 10 ft in the air at his teammates, but other than that it was fine
.
The only reason "unwritten rules" exist is because pitchers are little girls and everyone else is trying to avoid taking 96 to the head. Weird how all the stupid rules are to protect pitchers when pitchers just so happen to be the only ones allowed to sling a weapon at other people.
Get rid of the stupid unwritten rules by handing out month long suspensions to anyone purposefully throwing at batters.
/rant