libxrdp: security layer, error handling