Implement xp-framework/rfc#288
Fix fatal errors by using fully qualified name for lang.Error