Added parse-error handling
Added error state where first event is type of :leave