Application onError doesn't catch missinginclude error

Hi,
in my Application.cfc I have an onMissingTemplate and an onError Block:

public void function onMissingTemplate(String targetPage){
include “404.cfm”;
}

public void function onError(Any Exception, String EventName){
include “500.cfm”;
}

But if I hit www.example.com/.cfm
which is a test from Qualys, it renders the default error page from Lucee
showing a missinginclude error, with stracktrace etc.
Lucee Version 4.5.1.022