Going to city screen and choose the raze production tab.
Choosing a unit and select the "Destroy" button. Does nothing and does not croaks about anything. JS error log is rather full but nothing related to this here. On the second sight i could raze a unit somehow but i could not replicate it how it happened.