freerdp-core: added Terminate event