Always send an error frame before dying
Clean terminate on parse errors
Remove unused exception