fixing freerdp exit code handling